package cn.liontalk.StrategyPattern.duck;

import cn.liontalk.StrategyPattern.Duck;
import cn.liontalk.StrategyPattern.impl.FlyWithWing;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description 红头鸭的实现
 * @date 2019-01-09 16:00
 **/
public class RedheadDuck extends Duck {

    public RedheadDuck(){
        super();
        super.setFlyingStrategy(new FlyWithWing());
    }
    @Override
    public void display() {
        System.out.println("我的头是红色的!!!");
    }

}
